﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Document_Add.aspx.cs" MasterPageFile="/Admin/MasterPage.master" Inherits="Admin_Form_Document_Add" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="content" runat="server">

        <telerik:RadWindowManager runat="server" ID="window1">
            <Windows>
                 <telerik:RadWindow runat="server" Width="400px" Height="400px" VisibleStatusbar="false"
                    NavigateUrl="FileManager.aspx" ID="ExplorerWindow" Modal="true" >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        
        
        
        
            <input type="hidden" id="txtDocumentID" runat="server" />
            <table style="text-align:left">
                <tr>
                    <td>Nhóm Tài Liệu</td>
                    <td>
                    <telerik:RadComboBox AppendDataBoundItems="true" CssClass="AdminList" AutoPostBack="true" runat="server" DataTextField="CategoryPageName" DataValueField="CategoryPageID" ID="cboCategoryPage">
                        <Items>
                            <telerik:RadComboBoxItem Text="Không Có Nhóm Cha" />
                        </Items>
                    </telerik:RadComboBox></td>
                </tr>
                        
                <tr>
                    <td>Tên Tài Liệu</td>
                    <td><asp:TextBox CssClass="AdminTextbox" runat="server" ID="txtDocumentName"></asp:TextBox></td>
                    <td><asp:RequiredFieldValidator ErrorMessage="Bạn phải nhập tên tài liệu" runat="server" ID="require1" ControlToValidate="txtDocumentName"></asp:RequiredFieldValidator></td>
                </tr>
                
                <tr>
                    <td>Ảnh Tài Liệu</td>
                    <td>
                        <asp:TextBox CssClass="AdminTextbox" ID="txtDocumentImage" runat="server"></asp:TextBox>
                        <asp:Button ID="selectFile" OnClientClick="openRadWindow('FileManager.aspx?control=txtDocumentImage','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>File Tài Liệu</td>
                    <td>
                        <asp:TextBox CssClass="AdminTextbox" ID="txtDocumentPath" runat="server"></asp:TextBox>
                        <asp:Button ID="Button1" OnClientClick="openRadWindow('FileManager.aspx?control=txtDocumentPath','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        Định dạng
                    </td>
                    <td>
                        <asp:TextBox CssClass="AdminTextbox" ID="txtDocumentType" runat="server"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        Kích thước
                    </td>
                    <td>
                        <asp:TextBox CssClass="AdminTextbox" ID="txtDocumentSize" runat="server"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        Meta Keyword
                    </td>
                    <td>
                        <asp:TextBox CssClass="AdminTextbox" ID="txtMetaKeyword" runat="server"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        Meta Description
                    </td>
                    <td>
                        <asp:TextBox CssClass="AdminTextbox" ID="txtMetaDescription" runat="server"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                
                <tr>
                   <td>
                        Thứ Tự Hiển Thị
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="txtViewOrder" runat="server">
                        </telerik:RadNumericTextBox>
                    </td>
                    <td>
                    <asp:RequiredFieldValidator ControlToValidate="txtViewOrder" ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bạn Phải Nhập Thứ Tự Hiển Thị"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                
                 <tr>
                    <td colspan="3">
                        <asp:CheckBox Text="Tài Liệu Nổi Bật" ID="chkIsTypical" runat="server" /> &nbsp;&nbsp;
                        <asp:CheckBox Text="Tài Liệu Mới" ID="chkIsNew" runat="server" /> &nbsp;&nbsp;
                        <asp:CheckBox Text="Tài Liệu Hot" ID="chkIsHot" runat="server" /> &nbsp;&nbsp;
                    </td>
                </tr>
            
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button CssClass="AdminSaveButton" runat="server" ID="btnCreate" OnClick="btnCreate_Click" Text="Thêm Mới" />
                        <asp:Button CssClass="AdminCancelButton" runat="server" ID="btnReset" OnClick="btnReset_Click" CausesValidation="false" Text="Quay Lại" />            
                    </td>
                </tr>
            </table>
        
            <asp:Label runat="server" CssClass="AdminMessage" ID="lblMessage"></asp:Label>
  </asp:Content>
